<?php
require_once 'PHPUnit/Framework.php';
require_once(substr(__FILE__, 0, strrpos(__FILE__, '/')) . "/objects.php");

class objectsTest extends PHPUnit_Framework_TestCase
{
    public function testError()
    {
        $error = new Error("A test error. This should arrive on stderr.");
        if (!isset($error))
        {
          $this->fail("Error variable was not set.");
        }
    }
 
    public function testOutput()
    {
      $output = new Output("Test of output. This should arrive on stdout.");
      if (!isset($output))
      {
        $this->fail("Output variable was not set.");
      }  
    }
}
?>